﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BDS3M.Controls
{
    public partial class ContentThongTinLienHe : System.Web.UI.UserControl
    {
        public string CompanyName;
        public string CompanyDiaChi;
        public string CompanyMobile;
        public string CompanyFax;
        public string CompanyEmail;
        public string CompanyWebsite;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {

                DataTable dt = DAL.DCollector.DBCollector.Instance.StoredSelectAllTableOrderByCol("tbl_CompanyInfo", "CompanyInfo_Date", "desc");

                CompanyName = dt.Rows[0]["CompanyInfo_Name"].ToString();
                CompanyDiaChi = dt.Rows[0]["CompanyInfo_DiaChi"].ToString();
                CompanyMobile = dt.Rows[0]["CompanyInfo_Mobile"].ToString();
                CompanyFax = dt.Rows[0]["CompanyInfo_Fax"].ToString();
                CompanyEmail = dt.Rows[0]["CompanyInfo_Email"].ToString();
                CompanyWebsite = dt.Rows[0]["CompanyInfo_Website"].ToString();
            }
        }
    }
}